package com.zhentao.utils.common;

import com.zhentao.model.wemedia.pojo.WmUser;

import java.util.List;

/**
 * @Date 2024/5/10 15:28
 * @Author xdm
 **/

public class WmUserThreadLocalUtil {


    private final  static ThreadLocal<WmUser>  T_THREAD_LOCAL=new ThreadLocal();


    public static void setUser(WmUser user){
        T_THREAD_LOCAL.set(user);
    }

    public static WmUser getUser(){
       return T_THREAD_LOCAL.get();
    }

    public static void remove(){
        T_THREAD_LOCAL.remove();
    }



}
